<?php
namespace Home\Model;
use Think\Model;

class UsersModel extends Model
{
    protected $_validate = array(

        array('user_name','require','用户名不能为空！'),
        array('user_name','','帐号名称已经存在！',0,'unique',1),

        array('user_password','require','密码不能为空！'),

    );
}